package com.ffcc.fitness;

import cn.dev33.satoken.SaManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

@SpringBootApplication
@EnableWebSocket
public class FitnessApplication {

    public static void main(String[] args) {
        SpringApplication.run(FitnessApplication.class, args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
        System.out.println("WebSocket 服务器已启动，端点: ws://localhost:8080/websocket/chat/{userId}");
        System.out.println("WebSocket 测试端点: ws://localhost:8080/websocket/test/{userId}");
    }

}
